<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title>首页</title>
    <script type="text/javascript" th:src="@{/js/jquery-1.11.3.min.js}"></script>
</head>
<body>
    <div>登录成功shiro</div>
    <input type="button" id="logout" value="退出登录" />
    <script type="text/javascript">
    //<![CDATA[
    $(function(){
        $("#logout").click(function(){
            location.href="/logout";
        });
    });
    //]]>
</script>
</body>
</html>